package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AlgsInspectionRecordMapper;
import com.ruoyi.system.domain.AlgsInspectionRecord;
import com.ruoyi.system.service.IAlgsInspectionRecordService;

/**
 * 巡查记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-21
 */
@Service
public class AlgsInspectionRecordServiceImpl implements IAlgsInspectionRecordService 
{
    @Autowired
    private AlgsInspectionRecordMapper algsInspectionRecordMapper;

    /**
     * 查询巡查记录
     * 
     * @param inspectionRecordId 巡查记录主键
     * @return 巡查记录
     */
    @Override
    public AlgsInspectionRecord selectAlgsInspectionRecordByInspectionRecordId(Long inspectionRecordId)
    {
        return algsInspectionRecordMapper.selectAlgsInspectionRecordByInspectionRecordId(inspectionRecordId);
    }

    /**
     * 查询巡查记录列表
     * 
     * @param algsInspectionRecord 巡查记录
     * @return 巡查记录
     */
    @Override
    public List<AlgsInspectionRecord> selectAlgsInspectionRecordList(AlgsInspectionRecord algsInspectionRecord)
    {
        return algsInspectionRecordMapper.selectAlgsInspectionRecordList(algsInspectionRecord);
    }



    /**
     * 新增巡查记录
     * 
     * @param algsInspectionRecord 巡查记录
     * @return 结果
     */
    @Override
    public int insertAlgsInspectionRecord(AlgsInspectionRecord algsInspectionRecord)
    {
        return algsInspectionRecordMapper.insertAlgsInspectionRecord(algsInspectionRecord);
    }

    /**
     * 修改巡查记录
     * 
     * @param algsInspectionRecord 巡查记录
     * @return 结果
     */
    @Override
    public int updateAlgsInspectionRecord(AlgsInspectionRecord algsInspectionRecord)
    {
        return algsInspectionRecordMapper.updateAlgsInspectionRecord(algsInspectionRecord);
    }

    /**
     * 批量删除巡查记录
     * 
     * @param inspectionRecordIds 需要删除的巡查记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsInspectionRecordByInspectionRecordIds(Long[] inspectionRecordIds)
    {
        return algsInspectionRecordMapper.deleteAlgsInspectionRecordByInspectionRecordIds(inspectionRecordIds);
    }

    /**
     * 删除巡查记录信息
     * 
     * @param inspectionRecordId 巡查记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsInspectionRecordByInspectionRecordId(Long inspectionRecordId)
    {
        return algsInspectionRecordMapper.deleteAlgsInspectionRecordByInspectionRecordId(inspectionRecordId);
    }
}
